package com.ssi.mrms.action.user;

import java.util.List;

import org.apache.log4j.Logger;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Namespaces;
import org.apache.struts2.convention.annotation.Result;

import com.ssi.mrms.action.BaseAction;
import com.ssi.mrms.service.ComboboxService;
import com.ssi.mrms.view.SelectBoxView;

 
@Namespaces(value = { @Namespace("/user") })
public class USR001Action extends BaseAction {

	private static final Logger logger = Logger.getLogger(USR001Action.class);
	
	private ComboboxService comboboxService  = lookupBean(ComboboxService.class, "ComboboxService");
	private List<SelectBoxView> comboRole = null;
	   
	@Action(value = "/USR001", results = { @Result(name = "success", location = "USR001.tiles", type = "tiles") })
	public String execute() throws Exception {
		logger.info("## "+this.getClass().getSimpleName());

		setComboRole(comboboxService.getActiveRole());
		
		return SUCCESS;
	}

	public List<SelectBoxView> getComboRole() {
		return comboRole;
	}

	public void setComboRole(List<SelectBoxView> comboRole) {
		this.comboRole = comboRole;
	}

	
	
	

}
